package com.framework.boc.error;

public enum ErrorEnum implements CommonError {

    INVALID_PARAMETER(1000001, "无效的参数"),

    PARAMETER_ERROR(1000002, "参数错误"),

    UNKNOW_ERROR(1000003, "未知错误"),

    IO_ERROR(2000001, "IO错误"),

    FORMAT_ERROR(2000002, "IO FORMAT错误")




    ;

    private int errorCode;
    private String errorMessage;

    ErrorEnum(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    @Override
    public int getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorMessage() {
        return this.errorMessage;
    }

    @Override
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
